﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace ScorchedTanks
{
    class Projectile : Actor3d
    {
        public bool isInUse = false;

        public Projectile(ContentManager content, String model)
        {           
            mModel = content.Load<Model>(model);
        }

        public void update(float dTime)
        {
            position += direction * speed * dTime;//Posicion final sea igual a posicion inicial + direccion

            direction += Physics.Gravity;
            base.update(dTime);
        }

    }
}
